import request from '@/utils/request'

// 获取评审列表数据
export function getProjectContract(query) {
  return request({
    url: '/lims/dataAnalysis/list',
    method: 'get',
    params: query
  })
}

// 获取方案表单数据
export function batchReview(projectIds) {
  return request({
    url: '/lims/contract/project/submitProject/' + projectIds,
    method: 'post',
  })
}

// 获取右侧树形结构
export function getTreeData(query) {
  return request({
    url: '/lims/reportAnalyse/jclbGroupList',
    method: 'get',
    params: query
  })
}

// 获取左侧检测类别
export function getJclbTab(id) {
  return request({
    url: '/lims/reportAnalyse/jclbList/' + id,
    method: 'get',
  })
}

// 获取中间列表
export function getCenterTable(query) {
  return request({
    url: '/lims/reportAnalyse/dataList',
    method: 'get',
    params: query
  })
}

// 表格中某一项的id查询历史数据
export function getJcForm(sJId) {
  return request({
    url: '/lims/reportAnalyse/jcxm/'+ sJId,
    method: 'get',
  })
}

// 点击统计
export function getProjectList(query) {
  return request({
    url: '/lims/reportAnalyse/projectList',
    method: 'get',
    params: query
  })
}

// 表格中某一项的id查询溯源数据
export function getTraceForm(sJId) {
  return request({
    url: '/lims/reportAnalyse/data/' + sJId,
    method: 'get',
  })
}

// 点击树形复选框
export function postRuleId(query) {
  return request({
    url: '/lims/reportAnalyse/adjust',
    method: 'get',
    params: query
  })
}
